package io.github.siltal.examsystembackend.service;

import io.github.siltal.examsystembackend.dto.*;
import io.github.siltal.examsystembackend.entity.ExamQuestion;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Optional;

@Service
public interface QuestionOptionService {


    List<ExamQuestion> getAllQuestions();

    Optional<ExamQuestion> getQuestionById(Integer id);

    RandomQuestionOptionResponse getRandomQuestionOption(Integer size);

    ExamHistorySubmitResponse examHistorySubmit(ExamHistorySubmitRequest submit);

    ExamHistoryFetchResponse examHistoryFetch(ExamHistoryFetchRequest fetchRequest);
}